package main.java.com.lee.thread;

import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * @Description TODO
 * @Author winston
 * @DateTime 2021/12/8
 */
public class MyRejectedExecutionHandler implements RejectedExecutionHandler {
	@Override
	public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
		System.out.println("任务没有空闲资源可以执行: "+r.toString());
	}
}
